package web

import (
	"github.com/gin-gonic/gin"
	"guafo/internel/web/handler"
	"guafo/pkg/ginl/wrap_gin"
)

// @Description
// @Author 代码小学生王木木

type Router struct {
	codeHdl *handler.CodeHandler
}

func NewRouter(codeHdl *handler.CodeHandler) *Router {
	return &Router{
		codeHdl: codeHdl,
	}
}

func (r Router) RegisterRouter(engine *gin.Engine) {
	engine.GET("/code", wrap_gin.Wrap(r.codeHdl.ImageCaptcha)) // 获取图片验证码
}
